<?php
namespace  Admin\Model;
use Think\Model;
class GoodsModel extends Model{

	public function getAll($rs){
		$data = array();
		while($row = @mysql_fetch_assoc($rs)){
			$data[] = $row;
		}
		return $data;
	}	

	public function getRow($rs){
		return @mysql_fetch_assoc($rs);
	}
}